package com.industrial.governance.mapper;

import com.industrial.governance.domain.CityCount;
import com.industrial.governance.domain.QueryParams;
import com.industrial.governance.domain.SysArea;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BigPingServiceMapper {

    /**
     * 查询数据采集
     *
     * @return
     */
    Map<String, Object> queryDataCaiJi();

    /**
     * 查询统计局导入的个数
     * @return
     */
    List<String> selectTongJiDeptImportCount(QueryParams params);


    List<String> selectGuoTuDeptImportCount(QueryParams params);

    List<String> selectHuanBaoDeptImportCount(QueryParams params);


    List<String> selectRenSheDeptImportCount(QueryParams params);

    List<String> selectShuiLiDeptImportCount(QueryParams params);

    List<String> selectShuiWuDeptImportCount(QueryParams params);

    int selectCpCompanyCount(QueryParams params);

    /**
     * 查询所有的市及区县
     */
    List<SysArea> selectAllCountyInfo();

    int selectImportDataTotalCount(@Param("year") String years);

    /**
     * 查询数据异常错误数量
     * @param years
     * @return
     */
    int queryImportDataErrorCount(@Param("years") String years);

    /**
     * 各地市数据质量问题数量
     *
     * @param params
     * @return
     */
    List<CityCount> queryCityDataQuality(QueryParams params);

    Integer queryQualityRule();


}
